package com.study.javaOther.fingerguessing.participation;

public abstract class Player {
    private String name;
    private Integer score = 0;
    private Integer win = 0;
    private Integer lose = 0;
    private Integer tie = 0;

    public Player(String name) {
        this.name = name;
    }

    public void winGame() {
        this.score++;
        this.win++;
    }

    public void loseGame() {
        this.score--;
        this.lose++;
    }

    public void tieGame() {
        this.tie++;
    }

    public Integer getWin() {
        return win;
    }

    public Integer getLose() {
        return lose;
    }

    public Integer getTie() {
        return tie;
    }

    public Integer getScore() {
        return score;
    }

    public String getName() {
        return name;
    }

    public abstract int play();
}
